package com.kuyun.base.base;

import javax.annotation.Resource;

import com.kuyun.base.realm.MyRealm;
import com.kuyun.base.service.BaseDictionaryService;
import com.kuyun.base.service.BaseGroupService;
import com.kuyun.base.service.BasePrivilegeService;
import com.kuyun.base.service.BaseRoleService;
import com.kuyun.base.service.BaseUserService;

/**
 * 基本的controller，所有的service在这里注入
 * 
 * @author 唐靖
 *
 * @date 2016年6月18日下午4:31:28
 *
 */
public class BaseController {

	/**
	 * shiro权限相关的realm，任何设计到权限修改的地方，都需要调用myRealm的缓存清空操作
	 */
	@Resource
	protected MyRealm myRealm;

	/**
	 * 权限管理的service
	 */
	@Resource
	protected BasePrivilegeService basePrivilegeService;

	/**
	 * 字典管理的service
	 */
	@Resource
	protected BaseDictionaryService baseDictionaryService;
	/**
	 * 角色管理的service
	 */
	@Resource
	protected BaseRoleService baseRoleService;
	/**
	 * 用户管理的service
	 */
	@Resource
	protected BaseUserService baseUserService;

	/**
	 * 组织机构管理的service
	 */
	@Resource
	protected BaseGroupService baseGroupService;
}
